package com.zhao.service.Impl;

import com.zhao.dao.SaleMapper;
import com.zhao.pojo.Sale;
import com.zhao.service.SaleService;
import com.zhao.vo.SaleVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaleServiceImpl implements SaleService {
    @Autowired
    SaleMapper mapper;
    @Override
    public List<Sale> selectAllSale() {
        return mapper.selectAllSale();
    }

    @Override
    public Sale selectSaleById(int id) {
        return mapper.selectSaleById(id);
    }

    @Override
    public int updateSale(SaleVo saleVo) {
        return mapper.updateSale(saleVo);
    }
}
